// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  app: {
    head: {
      charset: 'utf-8',
      title: 'Странники без границ'
    }
  },
  modules: [
    "@pinia/nuxt",
    '@nuxtjs/tailwindcss',
    'shadcn-nuxt',
    '@nuxtjs/color-mode',
    'nuxt-icon',
    'nuxt-aos',
    '@formkit/auto-animate',
  ],
  colorMode: {
    classSuffix: '',
    fallback: 'dark',
  },
  aos: {
    disable: false,
    duration: 600,
    easing: 'ease-in-out-cubic',
    once: true
  },
  pinia: {
    storesDirs: ['./stores/**'],
  },
  runtimeConfig: {
    public: {
      API_URL: process.env.API_URL
    }
  },
  routeRules: {
    '/cabinet': { ssr: false },
    '/admin': { ssr: false },
    '/tour/**': { ssr: false },
  }
})